#ifndef DATAMANAGER_H
#define DATAMANAGER_H

#include <QObject>
#include <QMap>
#include <QMutex>

class DataManager : public QObject
{
    Q_OBJECT

public:
    explicit DataManager(QObject* parent = nullptr);

public slots:
    void processData(int nodeId, const QString& data);

signals:
    void allDataProcessed();  // 可选：当所有数据处理完成后发出信号
};

#endif // DATAMANAGER_H
